# Maintainer: Tobias Powalowski <tpowa@archlinux.org>

pkgname=facile
pkgver=1.1.3
pkgrel=13
pkgdesc="A Functional Constraint Library"
arch=(x86_64)
url="http://www.recherche.enac.fr/opti/facile/"
license=("LGPL")
makedepends=('ocaml-compiler-libs')
depends=()
source=(http://facile.recherche.enac.fr/distrib/$pkgname-$pkgver.tar.gz)
md5sums=('172c4fbea636a8fa575b988390639d8d')

build() {
  cd "$srcdir/$pkgname-$pkgver"
  ./configure
  make
}

package() {
  cd "$srcdir/$pkgname-$pkgver/src"
  install -d "$pkgdir/usr/lib/ocaml/facile"
  install -D -m 644 facile.cmxa facile.cmi facile.cma facile.a "$pkgdir/usr/lib/ocaml/facile"
}
